package com.group_g.hkr;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JPanel;

public class Panel_Products implements ActionListener{
	private static JPanel panel;
	private int width;

	public Panel_Products() {}
	
	public JPanel inIt(int width, int height){
		panel = new JPanel();
		panel.setLayout(null);
		panel.setPreferredSize(new Dimension(width,height));
		panel.setBackground(Color.cyan);
		this.width = width;
		return panel;
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		
	}

	public void resizePanel(int height){
		panel.setPreferredSize(new Dimension(width,height));
	}
	
	public static JPanel getPanel() {
		return panel;
	}
}
